package com.dk.service.impl;

import com.dk.mapper.QcIqcMapper;
import com.dk.pojo.QcIqc;
import com.dk.service.QcIqcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QcIqcServiceImpl implements QcIqcService {

    @Autowired
    private QcIqcMapper qcIqcMapper;

    @Override
    public void insertQcIqc(QcIqc qcIqc) {
        qcIqcMapper.insert(qcIqc);
    }

    @Override
    public void deletAll(List<String> ids) {
        qcIqcMapper.deleteAll(ids);
    }

    @Override
    public void update(QcIqc qcIqc) {
        qcIqcMapper.updateByPrimaryKeySelective(qcIqc);
    }

    @Override
    public List<QcIqc> selectQcIqc() {
        return qcIqcMapper.selectByExample(null);
    }

    @Override
    public void deleteById(Long id) {
        qcIqcMapper.deleteByPrimaryKey(id);
    }
}
